package com.smart.electronic.fence.mapper;

import com.smart.electronic.fence.pojo.ElectronicFence;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface ElectronicFenceMapper {
    int insert(@Param("fence") ElectronicFence fence);

    int deleteById(@Param("layerId")String layerId);

    int updateById(@Param("fence") ElectronicFence fence);

    List<ElectronicFence> selectAll();

    List<ElectronicFence> selectAllBySeach(@Param("searchValue") String searchValue);

    ElectronicFence selectById(@Param("layerId")String layerId);

    ElectronicFence selectByName(@Param("fenceName") String fenceName);


}
